package com.slz3.business.module.configManagement.conActivityForecast.steward;

import com.slz3.business.module.configManagement.conActivityForecast.domain.ConActivityForecast;
import com.slz3.business.module.configManagement.conActivityForecast.domain.ConActivityForecastCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class ConActivityForecastResponse {

    public static Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(ConActivityForecast.class).flatMap(conActivityForecast ->
                ConActivityForecastResController.add(req, conActivityForecast)
        );
    }

    public static Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(ConActivityForecastCondition.class).flatMap(conActivityForecastCondition ->
                ConActivityForecastResController.delete(req, conActivityForecastCondition)
        );
    }

    public static Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(ConActivityForecast.class).flatMap(conActivityForecast ->
                ConActivityForecastResController.modify(req, conActivityForecast)
        );
    }


    public static Mono<ServerResponse> list(ServerRequest req) {
        return ConActivityForecastResController.list(req);
    }

    public static Mono<ServerResponse> info(ServerRequest req) {
        return ConActivityForecastResController.info(req);
    }

    public static Mono<ServerResponse> choice(ServerRequest req) {
        return ConActivityForecastResController.choice(req);
    }

    public static Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(ConActivityForecastCondition.class).flatMap(conActivityForecastCondition ->
                ConActivityForecastResController.auditSubmit(req, conActivityForecastCondition)
        );
    }

    public static Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(ConActivityForecastCondition.class).flatMap(conActivityForecastCondition ->
                ConActivityForecastResController.audit(req, conActivityForecastCondition)
        );
    }

    public static Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(ConActivityForecastCondition.class).flatMap(conActivityForecastCondition ->
                ConActivityForecastResController.auditReject(req, conActivityForecastCondition)
        );
    }

    public static Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(ConActivityForecastCondition.class).flatMap(conActivityForecastCondition ->
                ConActivityForecastResController.usingEnable(req, conActivityForecastCondition)
        );
    }

    public static Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(ConActivityForecastCondition.class).flatMap(conActivityForecastCondition ->
                ConActivityForecastResController.usingDisable(req, conActivityForecastCondition)
        );
    }   

}
